-- GENERATED SPELL FOR [Burning Blade Apprentice] --


function spell0_3198(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(20791,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3198', 3000, 1)
end

function spell1_3198(pUnit, Event) --@Summon Voidwalker,Self--
pUnit:FullCastSpellOnTarget(12746,pUnit)
pUnit:RegisterEvent('Sorts_3198', 640, 1)
end

function Sorts_3198(pUnit, Event)
local choix_sorts_3198 = math.random(0, 1)
if choix_sorts_3198 == 0 then
pUnit:RegisterEvent('spell0_3198', 1, 1)
end
if choix_sorts_3198 == 1 then
pUnit:RegisterEvent('spell1_3198', 1, 1)
end
end

function mob3198_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3198', math.random(1500, 3000), 1)
end

function mob3198_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3198_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3198_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3198, 1, 'mob3198_Action')
RegisterUnitEvent(3198, 2, 'mob3198_Leave')
RegisterUnitEvent(3198, 3, 'mob3198_Kill')
RegisterUnitEvent(3198, 4, 'mob3198_Die')
